package com.gl.ruanzhu.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.gl.ruanzhu.dto.PersonalDto;
import com.gl.ruanzhu.dto.TaskDto;
import com.gl.ruanzhu.indto.TaskInDto;
import com.gl.ruanzhu.mapper.PersonalMapper;
import com.gl.ruanzhu.mapper.ProductDemandMapper;
import com.gl.ruanzhu.service.PersonalDalService;
import com.gl.ruanzhu.service.ProductDemandDalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
//@SuppressWarnings("all")
public class PersonalDalServiceImpl implements PersonalDalService {

    @Autowired
    PersonalMapper personalMapper;

    @Override
    public List<PersonalDto>  quaryAll() {

        List<PersonalDto> personalDtos = personalMapper.queryAll();

        return personalDtos;
    }



    /*@Override
    public int uploadFileTest(MultipartFile zipFile) {
        String targetFilePath = "D:\\test\\uploadTest";
        String fileName = UUID.randomUUID().toString().replace("-", "");
        File targetFile = new File(targetFilePath + File.separator + fileName);

        FileOutputStream fileOutputStream = null;
        try {
            fileOutputStream = new FileOutputStream(targetFile);
            IOUtils.copy(zipFile.getInputStream(), fileOutputStream);
        } catch (IOException e) {
            return 0;
        } finally {
            try {
                fileOutputStream.close();
            } catch (IOException e) {
                return 1;
            }
        saveTask()
        }
        return 0;
    }*/



}
